package cn.edu.scau.cmi.dengzejun.chapter10;

import java.io.*;

public class FileAccept implements FilenameFilter{
	private String extendName;
	public void setExtendName(String s) {
		extendName = "."+s;
		return;
	}
	
	public boolean accept(File dir,String name) {
		return name.endsWith(extendName);
	}
}
